# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=rrs
pkgver=1.70
pkgrel=5
epoch=100
groups=('blackarch' 'blackarch-backdoor')
pkgdesc='A reverse (connecting) remote shell. Instead of listening for incoming connections it will connect out to a listener (rrs in listen mode). With tty support and more.'
arch=('x86_64' 'aarch64')
url='http://www.cycom.se/dl/rrs'
license=('GPL')
source=("https://dl.packetstormsecurity.net/UNIX/misc/$pkgname-$pkgver.tar.gz")
DLAGENTS=("https::/usr/bin/curl -k -o %o %u")
sha512sums=('58a3d34bd80f2ddaa62112819d83ab2175daf1b9e66605d0b629a15d1fc6b43b482e1a4a763b99a07d85bbb0fa6df339d0dfcc203e3a3da3d5cfdabbd14a4bfa')

build() {
  cd "$pkgname-$pkgver"

  make generic
}

package() {
  cd "$pkgname-$pkgver"

  install -dm 755 "$pkgdir/usr/share"

  make PREFIX="$pkgdir/usr" install

  mv "$pkgdir/usr/man" "$pkgdir/usr/share/"
}

